package sdk.weinxin.beans.massmessage.preview;

import java.util.HashMap;
import java.util.Map;
import sdk.weinxin.beans.message.Card;

public class WxcardPreview extends Preview {
    
    private Card wxcard;
    public WxcardPreview() {
        super();
        this.setMsgType("wxcard");
    }  
    public WxcardPreview(String cardId) {
        super();
        this.setMsgType("wxcard");
        this.wxcard = new Card(cardId);
    }
    public WxcardPreview(String cardId, Map<String, String> cardExt) {
        super();
        this.setMsgType("wxcard");
        this.wxcard = new Card(cardId);
        if (cardExt != null) {
            this.wxcard.setCardExt(cardExt);
        }
    }
    
    public Card getWxcard() {
        return wxcard;
    }
    
    public void setWxcard(Card wxcard) {
        this.wxcard = wxcard;
    }
    
}
